package com.atzzy.ysmall.ysmall_mapper;

import com.atzzy.ysmall.ysmall_beans.ShoppingCart;
import com.atzzy.ysmall.ysmall_beans.ShoppingCartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author JAVAZeng
 * @Date 2022/3/8 14:05
 * @Version 1.0
 */
@Mapper
@Repository
public interface ShoppingsCartMapper {
    Integer updateShoppingCart(ShoppingCart shoppingCart);
    List<ShoppingCartVo> selectShopcartByUserId(Integer userId);
    Integer updateCartNumByCarid(@Param("cartId") Integer cartId,@Param("cartNum") Integer cartNum);
    Integer deleteCartByCarId(@Param("cartId")Integer cartId);
    List<ShoppingCartVo> selectShopCartByCids(@Param("cids") List<Integer> cids);

}
